package com.zyh.annotation.demo4;

import java.lang.annotation.*;

/**
 * @Author zyh
 * @Date 2024/8/15 9:49
 * @Description
 */

public class AnnotationDemo4 {
    @People
    @People
    @People
    @People
    public void show(){

    }
}

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(PeopleArr.class)
@interface People{

}
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@interface PeopleArr{//必须与上面的注解一样
    People[] value();//必须是value()
}
